#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  creatfile.py
#       Author @  Huoty
#  Create date @  2015-06-17 13:44:43
#  Description @  
# *************************************************************

import os

# Script starts from here

filename = raw_input("Enter file name:")
fobj = open(filename, "w")
while True:
    aLine = raw_input("Enter a line ('.' to quit):")
    if aLine != ".":
        fobj.write("%s%s" % (aLine, os.linesep))
    else:
        break

fobj.close()
